package com.uenpay.im.invokeitems.chat;

import com.uenpay.im.configuration.APIConfiguration;
import com.uenpay.im.invokeitems.BaseHttpInvokeItem;

import java.util.HashMap;

/**
 * 退出群聊
 * 
 * @author SL
 * @copyRight http://www.qiyunxin.com
 */
public class QuitGroupTalkInvokeItem extends BaseHttpInvokeItem {
	/**
	 * 退出群聊
	 * 
	 * @param chatId
	 * @param optype
	 *            普通群0：经费群:3
	 */
	public QuitGroupTalkInvokeItem(String chatId, int optype) {
		String url = APIConfiguration.getBaseUrl() + "Chat/Chat/exitChat?"
				+ APIConfiguration.getCustIdAndToken();
		HashMap<String, String> mRequestParams = new HashMap<String, String>();
		mRequestParams.put("chatid", chatId);
		mRequestParams.put("optype", optype + "");
		SetRequestParams(mRequestParams);
		RequestHttpInvokeItem(true);
		SetUrl(url);
	}

}
